home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 May (DVD) / Macworld Resource DVD May 2003.toast / Data / Shareware / Internet / Adium1.6.2c.sit / Adium 1.6.2c / Adium.app / Contents / Resources / grep Docs / NEWS < prev    next >
Encoding:
Text File  |  2002-10-19  |  9.4 KB  |  236 lines

  1. Version 2.5
  2.   - The new option --label allows to specify a different name for input
  3.     from stdin. See the man or info pages for details.
  4.  
  5.   - The internal lib/getopt* files are no longer used on systems providing
  6.     getopt functionality in their libc (e.g. glibc 2.2.x).
  7.     If you need the old getopt files, use --with-included-getopt.
  8.  
  9.   - The new option --only-matching (-o) will print only the part of matching
  10.     lines that matches the pattern. This is useful, for example, to extract
  11.     IP addresses from log files.
  12.  
  13.   - i18n bug fixed ([A-Z0-9] wouldn't match A in locales other than C on
  14.     systems using recent glibc builds
  15.  
  16.   - GNU grep can now be built with autoconf 2.52.
  17.  
  18.   - The new option --devices controls how grep handles device files. Its usage
  19.     is analogous to --directories.
  20.  
  21.   - The new option --line-buffered fflush on everyline.  There is a noticeable
  22.     slow down when forcing line buffering.
  23.  
  24.   - Back references  are now local to the regex.
  25.     grep -e '\(a\)\1' -e '\(b\)\1'
  26.     The last backref \1 in the second expression refer to \(b\)
  27.  
  28.   - The new option --include=PATTERN will only search matching files
  29.     when recursing in directories
  30.  
  31.   - The new option --exclude=PATTERN will skip matching files when
  32.     recursing in directories.
  33.  
  34.   - The new option --color will use the environment variable GREP_COLOR
  35.     (default is red) to highlight the matching string.
  36.     --color takes an optional argument specifying when to colorize a line:
  37.       --color=always, --color=tty, --color=never
  38.  
  39.   - The following changes are for POSIX.2 conformance:
  40.  
  41.     . The -q or --quiet or --silent option now causes grep to exit
  42.       with zero status when a input line is selected, even if an error
  43.       also occurs.
  44.  
  45.     . The -s or --no-messages option no longer affects the exit status.
  46.  
  47.     . Bracket regular expressions like [a-z] are now locale-dependent.
  48.       For example, many locales sort characters in dictionary order,
  49.       and in these locales the regular expression [a-d] is not
  50.       equivalent to [abcd]; it might be equivalent to [aBbCcDd], for
  51.       example.  To obtain the traditional interpretation of bracket
  52.       expressions, you can use the C locale by setting the LC_ALL
  53.       environment variable to the value "C".
  54.  
  55.   - The -C or --context option now requires an argument, partly for
  56.     consistency, and partly because POSIX.2 recommends against
  57.     optional arguments.
  58.  
  59.   - The new -P or --perl-regexp option tells grep to interpert the pattern as
  60.     a Perl regular expression.
  61.  
  62.   - The new option --max-count=num makes grep stop reading a file after num
  63.     matching lines.
  64.     New option -m; equivalent to --max-count.
  65.  
  66.   - Translations for bg, ca, da, nb and tr have been added.
  67.  
  68. Version 2.4.2
  69.  
  70.   - Added more check in configure to default the grep-${version}/src/regex.c
  71.     instead of the one in GNU Lib C.
  72.  
  73. Version 2.4.1
  74.  
  75.   - If the final byte of an input file is not a newline, grep now silently
  76.     supplies one.
  77.  
  78.   - The new option --binary-files=TYPE makes grep assume that a binary input
  79.     file is of type TYPE.
  80.     --binary-files='binary' (the default) outputs a 1-line summary of matches.
  81.     --binary-files='without-match' assumes binary files do not match.
  82.     --binary-files='text' treats binary files as text
  83.     (equivalent to the -a or --text option).
  84.  
  85.   - New option -I; equivalent to --binary-files='without-match'.
  86.  
  87. Version 2.4:
  88.  
  89.   - egrep is now equivalent to `grep -E' as required by POSIX,
  90.     removing a longstanding source of confusion and incompatibility.
  91.     `grep' is now more forgiving about stray `{'s, for backward
  92.     compatibility with traditional egrep.
  93.  
  94.   - The lower bound of an interval is not optional.
  95.     You must use an explicit zero, e.g. `x{0,10}' instead of `x{,10}'.
  96.     (The old documentation incorrectly claimed that it was optional.)
  97.  
  98.   - The --revert-match option has been renamed to --invert-match.
  99.  
  100.   - The --fixed-regexp option has been renamed to --fixed-string.
  101.  
  102.   - New option -H or --with-filename.
  103.  
  104.   - New option --mmap.  By default, GNU grep now uses read instead of mmap.
  105.     This is faster on some hosts, and is safer on all.
  106.  
  107.   - The new option -z or --null-data causes `grep' to treat a zero byte
  108.     (the ASCII NUL character) as a line terminator in input data, and
  109.     to treat newlines as ordinary data.
  110.  
  111.   - The new option -Z or --null causes `grep' to output a zero byte
  112.     instead of the normal separator after a file name.
  113.  
  114.   - These two options can be used with commands like `find -print0',
  115.     `perl -0', `sort -z', and `xargs -0' to process arbitrary file names,
  116.     even those that contain newlines.
  117.  
  118.   - The environment variable GREP_OPTIONS specifies default options;
  119.     e.g. GREP_OPTIONS='--directories=skip' reestablishes grep 2.1's
  120.     behavior of silently skipping directories.
  121.  
  122.   - You can specify a matcher multiple times without error, e.g.
  123.     `grep -E -E' or `fgrep -F'.  It is still an error to specify
  124.     conflicting matchers.
  125.  
  126.   - -u and -U are now allowed on non-DOS hosts, and have no effect.
  127.  
  128.   - Modifications of the tests scripts to go around the "Broken Pipe"
  129.     errors from bash. See Bash FAQ.
  130.  
  131.   - New option -r or --recursive or --directories=recurse.
  132.     (This option was also in grep 2.3, but wasn't announced here.)
  133.  
  134.   - --without-included-regex disable, was causing bogus reports .i.e
  135.     doing more harm then good.
  136.  
  137. Version 2.3:
  138.  
  139.   - When searching a binary file FOO, grep now just reports
  140.     `Binary file FOO matches' instead of outputting binary data.
  141.     This is typically more useful than the old behavior,
  142.     and it is also more consistent with other utilities like `diff'.
  143.     A file is considered to be binary if it contains a NUL (i.e. zero) byte.
  144.  
  145.     The new -a or --text option causes `grep' to assume that all
  146.     input is text.  (This option has the same meaning as with `diff'.)
  147.     Use it if you want binary data in your output.
  148.  
  149.   - `grep' now searches directories just like ordinary files; it no longer
  150.     silently skips directories.  This is the traditional behavior of
  151.     Unix text utilities (in particular, of traditional `grep').
  152.     Hence `grep PATTERN DIRECTORY' should report
  153.     `grep: DIRECTORY: Is a directory' on hosts where the operating system
  154.     does not permit programs to read directories directly, and
  155.     `grep: DIRECTORY: Binary file matches' (or nothing) otherwise.
  156.  
  157.     The new -d ACTION or --directories=ACTION option affects directory handling.
  158.     `-d skip' causes `grep' to silently skip directories, as in grep 2.1;
  159.     `-d read' (the default) causes `grep' to read directories if possible,
  160.     as in earlier versions of grep.
  161.  
  162.   - The MS-DOS and Microsoft Windows ports now behave identically to the
  163.     GNU and Unix ports with respect to binary files and directories.
  164.  
  165. Version 2.2:
  166.  
  167. Bug fix release.
  168.  
  169.   - Status error number fix.
  170.   - Skipping directories removed.
  171.   - Many typos fix.
  172.   - -f /dev/null fix(not to consider as an empty pattern).
  173.   - Checks for wctype/wchar.
  174.   - -E was using the wrong matcher fix.
  175.   - bug in regex char class fix
  176.   - Fixes for DJGPP
  177.  
  178. Version 2.1:
  179.  
  180. This is a bug fix release(see Changelog) i.e. no new features.
  181.  
  182.   - More compliance to GNU standard.
  183.   - Long options.
  184.   - Internationalisation.
  185.   - Use automake/autoconf.
  186.   - Directory hierarchy change.
  187.   - Sigvec with -e on Linux corrected.
  188.   - Sigvec with -f on Linux corrected.
  189.   - Sigvec with the mmap() corrected.
  190.   - Bug in kwset corrected.
  191.   - -q, -L and -l stop on first match.
  192.   - New and improve regex.[ch] from Ulrich Drepper.
  193.   - New and improve dfa.[ch] from Arnold Robbins.
  194.   - Prototypes for over zealous C compiler.
  195.   - Not scanning a file, if it's a directory
  196.     (cause problems on Sun).
  197.   - Ported to MS-DOS/MS-Windows with DJGPP tools.
  198.  
  199. See Changelog for the full story and proper credits.
  200.  
  201. Version 2.0:
  202.  
  203. The most important user visible change is that egrep and fgrep have
  204. disappeared as separate programs into the single grep program mandated
  205. by POSIX 1003.2.  New options -G, -E, and -F have been added,
  206. selecting grep, egrep, and fgrep behavior respectively.  For
  207. compatibility with historical practice, hard links named egrep and
  208. fgrep are also provided.  See the manual page for details.
  209.  
  210. In addition, the regular expression facilities described in Posix
  211. draft 11.2 are now supported, except for internationalization features
  212. related to locale-dependent collating sequence information.
  213.  
  214. There is a new option, -L, which is like -l except it lists
  215. files which don't contain matches.  The reason this option was
  216. added is because '-l -v' doesn't do what you expect.
  217.  
  218. Performance has been improved; the amount of improvement is platform
  219. dependent, but (for example) grep 2.0 typically runs at least 30% faster
  220. than grep 1.6 on a DECstation using the MIPS compiler.  Where possible,
  221. grep now uses mmap() for file input; on a Sun 4 running SunOS 4.1 this
  222. may cut system time by as much as half, for a total reduction in running
  223. time by nearly 50%.  On machines that don't use mmap(), the buffering
  224. code has been rewritten to choose more favorable alignments and buffer
  225. sizes for read().
  226.  
  227. Portability has been substantially cleaned up, and an automatic
  228. configure script is now provided.
  229.  
  230. The internals have changed in ways too numerous to mention.
  231. People brave enough to reuse the DFA matcher in other programs
  232. will now have their bravery amply "rewarded", for the interface
  233. to that file has been completely changed.  Some changes were
  234. necessary to track the evolution of the regex package, and since
  235. I was changing it anyway I decided to do a general cleanup.
  236.